const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");
const WebpackBar = require("webpackbar");

module.exports = merge(common, {
  mode: "development",
  devtool: "inline-source-map",
  plugins: [new WebpackBar({ name: "DEV" })],
  watch: false,
  module: {
    rules: [
      {
        test: /\.scss$/,
        use: [
          // ...其他loader
          {
            loader: "sass-loader",
            options: {
              sourceMap: true,
              implementation: require("sass"),
            },
          },
        ],
      },
    ],
  },
});
